package com.hs.srm.admin.modules.requisition.dao;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.hs.srm.admin.modules.pricemanagement.entity.InquiryHeaderEntity;
import com.hs.srm.admin.modules.requisition.entity.NproPurchRequestHeaderEntity;
import com.hs.srm.admin.modules.requisition.entity.ProPurchRequestItemEntity;

public interface NproPurchRequestHeaderDao extends BaseMapper<NproPurchRequestHeaderEntity> {
	//返回实体
	NproPurchRequestHeaderEntity queryNproPurchRequestHeader();
	
	NproPurchRequestHeaderEntity selectById(@Param("pkId") String pkId);
	
	NproPurchRequestHeaderEntity findByNo(@Param("purchRequestCode") String purchRequestCode);
	
	void updateName(NproPurchRequestHeaderEntity nproPurchRequestHeaderEntity);
	
	List<NproPurchRequestHeaderEntity> selectBatchIds(@Param("ids")List<String> ids);

    List<NproPurchRequestHeaderEntity> selectHeadPage(Page<NproPurchRequestHeaderEntity> page, Wrapper<NproPurchRequestHeaderEntity> wrapper,@Param(value = "params") Map<String, Object> params);

    boolean updateByRequestCode(String requestCode);
}
